﻿@using WebApplication1.ViewModels
@model EmployeeListViewModel
@*@{
            ViewBag.Title = "test5";
        }
        <!--强类型View-->
        <h2>test5</h2>
    Employee Details

        Employee Name : @Model.FirstName @Model.LastName

        @if (Model.Salary > 15000)
        {
            <span style="background-color:yellow">
                Employee Salary: @Model.Salary.ToString("C")
            </span>
        }
        else
        {
            <span style="background-color:green">
                Employee Salary: @Model.Salary.ToString("C")
            </span>
        }
*@


<!--实验6 实现ViewModel-->
@*hello @Model.UserName;
<hr />
<div>
    <b>Employee Details</b><br />
    Employee Name : @Model.EmployeeName <br />
    <span style="background-color:@Model.SalaryColor">
        Employee Salary: @Model.Salary

    </span>

</div>*@



